var action;
var newFieldButton;
var newFieldRow;
jQuery(function() {

    jQuery('#new_field').click(function() {
        newFieldButton = this;
        jQuery.ajax(
        {
            url : '?method=FIELD_NEW' ,

            success : function(result) {
                jQuery('#fields_table_id tr:last').before(result);
                var rowCount = jQuery('#fields_table_id tr').length;
                var nth = rowCount - 1;
                 
                evaluateFieldRow(jQuery('#fields_table_id tr:nth-child('+nth+')'));
            //tr:nth-child('+index+')'
            //evaluateFieldRow(jQuery('#fields_table_id tr:last').before());
            }
                
        });
        
    });
	
});

